@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>期权认购管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">

                        <div class="row">

                            <div class="col-sm-3">
                                <#NameCon id="orderno" name="订单号" placeholder="请输入订单号"/>
                            </div>

                            <div class="col-sm-3">
                                <#NameCon id="fullname" name="会员信息" placeholder="姓名/昵称/手机/身份证"/>
                            </div>

                            <div class="col-sm-3">
                                <#SelectCon id="status" name="状态" >
                                    <option value="-1">全部</option>
                                    <option value="10">待报价</option>
                                    <option value="11">询价已受理</option>
                                    <option value="12">已报价</option>
                                    <option value="13">报价失败</option>
                                    <option value="14">报价过期</option>
                                    <option value="21">买入待成交</option>
                                    <option value="22">买入已受理</option>
                                    <option value="23">买入已成交</option>
                                    <option value="24">买入失败</option>
                                    <option value="25">支付过期</option>
                                    <option value="26">买入撤销</option>
                                </#SelectCon>
                            </div>


                            <div class="col-sm-3">
                                <#NameCon id="batchno" name="批次号" placeholder="请输入询价或认购批次号"/>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <#TimeCon id="inquiryTime_begin" name="询价时间开始" isTime="false" pattern="YYYY-MM-DD"/>
                            </div>

                            <div class="col-sm-3">
                                <#TimeCon id="inquiryTime_end" name="询价时间结束" isTime="false" pattern="YYYY-MM-DD"/>
                            </div>


                            <div class="col-sm-3">
                                <#TimeCon id="offerTime_begin" name="报价时间开始" isTime="false" pattern="YYYY-MM-DD"/>
                            </div>

                            <div class="col-sm-3">
                                <#TimeCon id="offerTime_end" name="报价时间结束" isTime="false" pattern="YYYY-MM-DD"/>
                            </div>

                        </div>


                        <div class="row">
                            <div class="col-sm-3">
                                <#TimeCon id="buyAcceptTime_begin" name="成交时间开始" isTime="false" pattern="YYYY-MM-DD"/>
                            </div>

                            <div class="col-sm-3">
                                <#TimeCon id="buyAcceptTime_end" name="成交时间结束" isTime="false" pattern="YYYY-MM-DD"/>
                            </div>

                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="StockOrder.search()"/>
                            </div>

                        </div>
                        <div class="hidden-xs" id="StockOrderTableToolbar" role="group">
                            @if(shiro.hasPermission("/stockOrder/add")){
                                <#button name="添加" icon="fa-plus" clickFun="StockOrder.openAddStockOrder()"/>
                            @}
                            @if(shiro.hasPermission("/stockOrder/update")){
                                <#button name="修改" icon="fa-plus" clickFun="StockOrder.openStockOrderDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/stockOrder/delete")){
                                <#button name="删除" icon="fa-plus" clickFun="StockOrder.delete()" space="true"/>
                            @}
                            <#button name="询价导出" icon="fa-upload" clickFun="StockOrder.inquiryExportData()" space="true"/>
                            <input type="file" id="uploadFile" name="uploadFile" onchange="ajaxFileUpload()" style="display: none;" accept=".xls,.xlsx"/>
                            <#button name="询价导入" icon="fa-level-down" clickFun="StockOrder.inquiryImportData()" space="true"/>
                            <#button name="询价导入确认" icon="fa-bars" clickFun="StockOrder.assignOrder()" space="true"/>
                            <#button name="认购导出" icon="fa-upload" clickFun="StockOrder.buyExportData()" space="true"/>
                            <input type="file" id="uploadFileBuy" name="uploadFile" onchange="ajaxFileUploadBuy()" style="display: none;" accept=".xls,.xlsx"/>
                            <#button name="认购导入" icon="fa-level-down" clickFun="StockOrder.buyImportData()" space="true"/>
                            <#button name="平仓导出" icon="fa-upload" clickFun="StockOrder.sellExportData()" space="true"/>
                            <input type="file" id="uploadFileSell" name="uploadFile" onchange="ajaxFileUploadSell()" style="display: none;" accept=".xls,.xlsx"/>
                            <#button name="平仓导入" icon="fa-level-down" clickFun="StockOrder.sellImportData()" space="true"/>
                        </div>
                        <#table id="StockOrderTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/stock/stockOrder/stockOrder.js"></script>
@}
